import { _decorator, Component, Node } from 'cc';
import EventManager from '../../Init/Managers/EventManager';
import { EventTypes } from '../../Init/Managers/EventTypes';
import { UISystem } from '../../Init/SystemUI/UISystem';
import { UIEnum } from '../../Init/SystemUI/UIEnum';
const { ccclass, property } = _decorator;

@ccclass('TTSiderBar')
export class TTSiderBar extends Component {
    isShow = false;
    onLoad() {
        EventManager.emit(EventTypes.SDKEvents.CheckSiderbar, (isShow) => {
            this.isShow = isShow;
            this.node.active = this.isShow;
        })
    }


    onShowNavigateToSceneUI() {
        // 
        UISystem.showUI(UIEnum.NavigateToSceneUI,);
    }

}

